package com.goods.business.converter;

import com.goods.common.model.business.ProductCategory;
import com.goods.common.vo.business.ProductCategoryTreeNodeVO;
import org.springframework.beans.BeanUtils;

public class ProductCategoryTreeNodeConverter {


    /**
     * 转vo
     * @return
     */
    public static ProductCategoryTreeNodeVO converterToProductCategoryTreeNodeVO(ProductCategory ProductCategory){
        ProductCategoryTreeNodeVO productCategoryTreeNodeVO = new ProductCategoryTreeNodeVO();
        BeanUtils.copyProperties(ProductCategory,productCategoryTreeNodeVO);
        return productCategoryTreeNodeVO;
    }
}
